﻿@using Xwy.MyProject.Reservations.Dto
@using Xwy.MyProject.Web.Models.Common.Modals
@model ReservationDto
@{
    Layout = null;
}
@await Html.PartialAsync("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel("编辑"))
<form name="ReservationEditForm" role="form" class="form-horizontal">
    <input type="hidden" name="Id" value="@Model.Id" />
    <div class="modal-body">
        <div class="form-group row required">
            <label class="col-md-3 col-form-label">姓名</label>
            <div class="col-md-9">
                <input type="text" asp-for="Name" class="form-control" required maxlength="255" minlength="2">
            </div>
        </div>
        <div class="form-group row required">
            <label class="col-md-3 col-form-label">身份证</label>
            <div class="col-md-9">
                <input type="text" asp-for="IdentityCard" class="form-control" required maxlength="255" minlength="2">
            </div>
        </div>
        <div class="form-group row required">
            <label class="col-md-3 col-form-label">手机号</label>
            <div class="col-md-9">
                <input type="text" asp-for="Mobile" class="form-control" required maxlength="255" minlength="2">
            </div>
        </div>
        <div class="form-group row required">
            <label class="col-md-3 col-form-label">场馆</label>
            <div class="col-md-9">
                <input type="text" asp-for="WhichLibrary" class="form-control" required maxlength="255" minlength="2">
            </div>
        </div>
        <div class="form-group row required">
            <label class="col-md-3 col-form-label">预约时间</label>
            <div class="col-md-9">
                <input type="text" asp-for="WhenTime" class="form-control" required maxlength="255" minlength="2">
            </div>
        </div>
        <div class="form-group row required">
            <label class="col-md-3 col-form-label">状态</label>
            <div class="col-md-9">
                <select asp-for="Status" class="form-control">
                    <option value="0">未审核</option>
                    <option value="1">审核通过</option>
                    <option value="-1">审核不通过</option>
                </select>
            </div>
        </div>

    </div>
    @await Html.PartialAsync("~/Views/Shared/Modals/_ModalFooterWithSaveAndCancel.cshtml")
</form>

<script src="~/view-resources/Views/Reservations/_EditModal.js" asp-append-version="true"></script>
